<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: pcl::segmentation::grabcut::GMM类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classpcl_1_1segmentation_1_1grabcut_1_1_g_m_m.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pri-attribs">Private 属性</a> &#124;
<a href="classpcl_1_1segmentation_1_1grabcut_1_1_g_m_m-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">pcl::segmentation::grabcut::GMM类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a5219e6b9ee0ba89bf795cf151c14a61b"><td class="memItemLeft" align="right" valign="top"><a id="a5219e6b9ee0ba89bf795cf151c14a61b"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1segmentation_1_1grabcut_1_1_g_m_m.html#a5219e6b9ee0ba89bf795cf151c14a61b">GMM</a> ()</td></tr>
<tr class="memdesc:a5219e6b9ee0ba89bf795cf151c14a61b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize <a class="el" href="classpcl_1_1segmentation_1_1grabcut_1_1_g_m_m.html">GMM</a> with ddesired number of gaussians. <br /></td></tr>
<tr class="separator:a5219e6b9ee0ba89bf795cf151c14a61b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8c870011d933a72b1885f2ee923ced53"><td class="memItemLeft" align="right" valign="top"><a id="a8c870011d933a72b1885f2ee923ced53"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1segmentation_1_1grabcut_1_1_g_m_m.html#a8c870011d933a72b1885f2ee923ced53">GMM</a> (std::size_t K)</td></tr>
<tr class="memdesc:a8c870011d933a72b1885f2ee923ced53"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize <a class="el" href="classpcl_1_1segmentation_1_1grabcut_1_1_g_m_m.html">GMM</a> with ddesired number of gaussians. <br /></td></tr>
<tr class="separator:a8c870011d933a72b1885f2ee923ced53"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3e99b01e190f53b08ca7fbba773a1755"><td class="memItemLeft" align="right" valign="top"><a id="a3e99b01e190f53b08ca7fbba773a1755"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1segmentation_1_1grabcut_1_1_g_m_m.html#a3e99b01e190f53b08ca7fbba773a1755">~GMM</a> ()</td></tr>
<tr class="memdesc:a3e99b01e190f53b08ca7fbba773a1755"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor <br /></td></tr>
<tr class="separator:a3e99b01e190f53b08ca7fbba773a1755"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa89a83e75f62c730a7a3e171d9468af6"><td class="memItemLeft" align="right" valign="top">std::size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1segmentation_1_1grabcut_1_1_g_m_m.html#aa89a83e75f62c730a7a3e171d9468af6">getK</a> () const</td></tr>
<tr class="separator:aa89a83e75f62c730a7a3e171d9468af6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa03b1c650969a0cab96b582d9f05b30f"><td class="memItemLeft" align="right" valign="top"><a id="aa03b1c650969a0cab96b582d9f05b30f"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1segmentation_1_1grabcut_1_1_g_m_m.html#aa03b1c650969a0cab96b582d9f05b30f">resize</a> (std::size_t K)</td></tr>
<tr class="memdesc:aa03b1c650969a0cab96b582d9f05b30f"><td class="mdescLeft">&#160;</td><td class="mdescRight">resize gaussians <br /></td></tr>
<tr class="separator:aa03b1c650969a0cab96b582d9f05b30f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a60b6eb16f23da38a1a29a6b3e9464efc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structpcl_1_1segmentation_1_1grabcut_1_1_gaussian.html">Gaussian</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1segmentation_1_1grabcut_1_1_g_m_m.html#a60b6eb16f23da38a1a29a6b3e9464efc">operator[]</a> (std::size_t pos)</td></tr>
<tr class="separator:a60b6eb16f23da38a1a29a6b3e9464efc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adff03b33a2c8cc417b127e23eaffffad"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="structpcl_1_1segmentation_1_1grabcut_1_1_gaussian.html">Gaussian</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1segmentation_1_1grabcut_1_1_g_m_m.html#adff03b33a2c8cc417b127e23eaffffad">operator[]</a> (std::size_t pos) const</td></tr>
<tr class="separator:adff03b33a2c8cc417b127e23eaffffad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab373bf483a57ede2e0339c910652b0aa"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1segmentation_1_1grabcut_1_1_g_m_m.html#ab373bf483a57ede2e0339c910652b0aa">probabilityDensity</a> (const <a class="el" href="structpcl_1_1segmentation_1_1grabcut_1_1_color.html">Color</a> &amp;c)</td></tr>
<tr class="separator:ab373bf483a57ede2e0339c910652b0aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4b2b50be1a466d37389063ab88d33bcf"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1segmentation_1_1grabcut_1_1_g_m_m.html#a4b2b50be1a466d37389063ab88d33bcf">probabilityDensity</a> (std::size_t i, const <a class="el" href="structpcl_1_1segmentation_1_1grabcut_1_1_color.html">Color</a> &amp;c)</td></tr>
<tr class="separator:a4b2b50be1a466d37389063ab88d33bcf"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private 属性</h2></td></tr>
<tr class="memitem:a895b274e1765f3f9b06245e0d9a95474"><td class="memItemLeft" align="right" valign="top"><a id="a895b274e1765f3f9b06245e0d9a95474"></a>
std::vector&lt; <a class="el" href="structpcl_1_1segmentation_1_1grabcut_1_1_gaussian.html">Gaussian</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1segmentation_1_1grabcut_1_1_g_m_m.html#a895b274e1765f3f9b06245e0d9a95474">gaussians_</a></td></tr>
<tr class="memdesc:a895b274e1765f3f9b06245e0d9a95474"><td class="mdescLeft">&#160;</td><td class="mdescRight">array of gaussians <br /></td></tr>
<tr class="separator:a895b274e1765f3f9b06245e0d9a95474"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">成员函数说明</h2>
<a id="aa89a83e75f62c730a7a3e171d9468af6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa89a83e75f62c730a7a3e171d9468af6">&#9670;&nbsp;</a></span>getK()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::size_t pcl::segmentation::grabcut::GMM::getK </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>返回</dt><dd>K </dd></dl>
<div class="fragment"><div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;{ <span class="keywordflow">return</span> <a class="code" href="classpcl_1_1segmentation_1_1grabcut_1_1_g_m_m.html#a895b274e1765f3f9b06245e0d9a95474">gaussians_</a>.size (); }</div>
<div class="ttc" id="aclasspcl_1_1segmentation_1_1grabcut_1_1_g_m_m_html_a895b274e1765f3f9b06245e0d9a95474"><div class="ttname"><a href="classpcl_1_1segmentation_1_1grabcut_1_1_g_m_m.html#a895b274e1765f3f9b06245e0d9a95474">pcl::segmentation::grabcut::GMM::gaussians_</a></div><div class="ttdeci">std::vector&lt; Gaussian &gt; gaussians_</div><div class="ttdoc">array of gaussians</div><div class="ttdef"><b>Definition:</b> grabcut_segmentation.h:250</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a60b6eb16f23da38a1a29a6b3e9464efc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a60b6eb16f23da38a1a29a6b3e9464efc">&#9670;&nbsp;</a></span>operator[]() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structpcl_1_1segmentation_1_1grabcut_1_1_gaussian.html">Gaussian</a>&amp; pcl::segmentation::grabcut::GMM::operator[] </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>pos</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>返回</dt><dd>a reference to the gaussian at a given position </dd></dl>
<div class="fragment"><div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;{ <span class="keywordflow">return</span> (<a class="code" href="classpcl_1_1segmentation_1_1grabcut_1_1_g_m_m.html#a895b274e1765f3f9b06245e0d9a95474">gaussians_</a>[pos]); }</div>
</div><!-- fragment -->
</div>
</div>
<a id="adff03b33a2c8cc417b127e23eaffffad"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adff03b33a2c8cc417b127e23eaffffad">&#9670;&nbsp;</a></span>operator[]() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="structpcl_1_1segmentation_1_1grabcut_1_1_gaussian.html">Gaussian</a>&amp; pcl::segmentation::grabcut::GMM::operator[] </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>pos</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>返回</dt><dd>a const reference to the gaussian at a given position </dd></dl>
<div class="fragment"><div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;{ <span class="keywordflow">return</span> (<a class="code" href="classpcl_1_1segmentation_1_1grabcut_1_1_g_m_m.html#a895b274e1765f3f9b06245e0d9a95474">gaussians_</a>[pos]); }</div>
</div><!-- fragment -->
</div>
</div>
<a id="ab373bf483a57ede2e0339c910652b0aa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab373bf483a57ede2e0339c910652b0aa">&#9670;&nbsp;</a></span>probabilityDensity() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float pcl::segmentation::grabcut::GMM::probabilityDensity </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structpcl_1_1segmentation_1_1grabcut_1_1_color.html">Color</a> &amp;&#160;</td>
          <td class="paramname"><em>c</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>返回</dt><dd>the computed probability density of a color in this <a class="el" href="classpcl_1_1segmentation_1_1grabcut_1_1_g_m_m.html">GMM</a> </dd></dl>

</div>
</div>
<a id="a4b2b50be1a466d37389063ab88d33bcf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4b2b50be1a466d37389063ab88d33bcf">&#9670;&nbsp;</a></span>probabilityDensity() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float pcl::segmentation::grabcut::GMM::probabilityDensity </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structpcl_1_1segmentation_1_1grabcut_1_1_color.html">Color</a> &amp;&#160;</td>
          <td class="paramname"><em>c</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>返回</dt><dd>the computed probability density of a color in just one <a class="el" href="structpcl_1_1segmentation_1_1grabcut_1_1_gaussian.html" title="Gaussian structure">Gaussian</a> </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>segmentation/include/pcl/segmentation/<a class="el" href="grabcut__segmentation_8h_source.html">grabcut_segmentation.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>pcl</b></li><li class="navelem"><b>segmentation</b></li><li class="navelem"><b>grabcut</b></li><li class="navelem"><a class="el" href="classpcl_1_1segmentation_1_1grabcut_1_1_g_m_m.html">GMM</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
